'''
Author: duliang thinktanker@163.com
Date: 2024-01-27 10:52:06
LastEditors: duliang thinktanker@163.com
LastEditTime: 2024-07-21 12:09:18
FilePath: \industrial-control-network\temp.py
Description: 
'''
import requests
from mySerial import getCOMport, openCOM
with open("log.txt", "rb") as f:
    # r = requests.post("https://16gs832674.oicp.vip/file",
    #                   data={
    #                       "user": "testuser2",
    #                       "tag": "testtag"
    #                   },
    #                   files={"file": f})
    # print(r.text)
    openCOM(comport="COM11", sendContent=f.read() + b'FIL')
